﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UsuarioLista.aspx.cs" Inherits="InfraWEB.UI.UsuarioLista" MasterPageFile="~/GerenteMaster.Master" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
        <div>
			<h1 class="style3">Lista de Usuários</h1>
			<div class="error">
				<asp:Label runat="server" ID="lblMensagem" Visible="false"></asp:Label>
				<br />
			</div>
			<div class="oneline">
				<asp:Button ID="btnNovoUsuario" Text="Novo Usuário"  onclick="btnNovoUsuario_Click" runat="server"/>
				<br />
				<br />
			</div>
			<asp:GridView ID="usuarioGridView" runat="server" CellPadding="4" 
				ForeColor="#333333" GridLines="None" AllowPaging="True" 
				AllowSorting="True" AutoGenerateColumns="False" 
				DataKeyNames="UsuId" 
				OnRowEditing="usuarioGridView_RowEditing" 
				OnRowDeleting="usuarioGridView_RowDeleting" 
				OnSorting="usuarioGridView_Sorting">
				<RowStyle BackColor="#EFF3FB" />
				<Columns>
					<asp:BoundField DataField="UsuLogin" HeaderText="Login" 
						HeaderStyle-HorizontalAlign="Left" 
						SortExpression="UsuLogin" >
						<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					</asp:BoundField>
					<asp:BoundField DataField="UsuNome" HeaderText="Nome" 
						HeaderStyle-HorizontalAlign="Left" 
						SortExpression="UsuNome" >
						<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					</asp:BoundField>
					<asp:BoundField DataField="UsuEmail" HeaderText="Email" 
						HeaderStyle-HorizontalAlign="Left" 
						SortExpression="UsuEmail" >
						<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
					</asp:BoundField>
					<asp:TemplateField HeaderText="Tipo" SortExpression="UsuTipo">
						<EditItemTemplate>
							<asp:DropDownList ID="ddlType" runat="server" Text='<%# Bind("UsuTipo") %>'></asp:DropDownList>
						</EditItemTemplate>
						<ItemTemplate>
							<asp:Label ID="lblType" runat="server" Text='<%# Bind("UsuTipo") %>'></asp:Label>
						</ItemTemplate>
						<HeaderStyle HorizontalAlign="Left" />
					</asp:TemplateField>
					<asp:CommandField ShowEditButton="True" EditText="Editar" />
					<asp:CommandField ShowDeleteButton="True" DeleteText="Remover" />
				</Columns>
				<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
				<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
				<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
				<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
				<EditRowStyle BackColor="#2461BF" />
				<AlternatingRowStyle BackColor="White" />
			</asp:GridView>
		</div>
</asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">

    <style type="text/css">
        .style3
        {
            color: #507CD1;
        }
    </style>

</asp:Content>

